FROM ocr_base:1.1
COPY ./ ./root/app/
WORKDIR /root/app
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ && \
    pip install -r requirements-gpu.txt && \
    pip install ocr_process-0.1.0-py3-none-any.whl
EXPOSE 80

ENTRYPOINT ["python", "main.py"]
